const obj = readonly({ foo: { bar: 1 } })
obj.foo.bar = 2